<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>用户注册</title>
  <link rel="stylesheet" href="{{ url_for('static',filename='/css/adminlte.min.css') }}">
</head>
<body>
  <div class="container">
    <div class="row">
      <div class="col-md-12">
        <div class="page-header">
          <h2 class="text-center">用户注册</h2>
        </div>
        <form novalidate action="" method="post" class="form-horizontal">
          {{ form_obj.csrf_token }}
          <div class="form-group">
            <label for="{{form_obj.username.id_for_label}}" class="col-sm-2">{{form_obj.username.label}}</label>
            <div class="col-sm-8">{{form_obj.username}}
              <span class="help-block">{{ form_obj.username.errors[0] }}</span>
            </div>
          </div>
          <div class="form-group">
            <label for="{{form_obj.password.id_for_label}}" class="col-sm-2">{{form_obj.password.label}}</label>
            <div class="col-sm-8">{{form_obj.password}}
              <span class="help-block">{{ form_obj.password.errors[0] }}</span>
            </div>
          </div>
          <div class="form-group">
            <label for="{{form_obj.re_password.id_for_label}}" class="col-sm-2">{{form_obj.re_password.label}}</label>
            <div class="col-sm-8">{{form_obj.re_password}}
              <span class="help-block">{{ form_obj.re_password.errors[0] }}</span>
            </div>
          </div>
          <div class="form-group">
            <label for="{{form_obj.email.id_for_label}}" class="col-sm-2">{{form_obj.email.label}}</label>
            <div class="col-sm-8">{{form_obj.email}}
              <span class="help-block">{{ form_obj.email.errors[0] }}</span>
            </div>
          </div>
          <div class="form-group">
            <label for="{{form_obj.mobile.id_for_label}}" class="col-sm-2">{{form_obj.mobile.label}}</label>
            <div class="col-sm-8">{{form_obj.mobile}}
              <span class="help-block">{{ form_obj.mobile.errors[0] }}</span>
            </div>
          </div>
          <div class="form-group">
            <div class="col-sm-12">
              <input type="submit" class="btn btn-success" value="用户注册">
              <a href="{{url_for('users.login')}}"  class="btn btn-success">用户登录</a>
            </div>{{ info }}
          </div>
        </form>
      </div>
    </div>
  </div>
</body>
</html>